package com.flnet.foxwash.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.flnet.common.base.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表 w_order
 * 
 * @author flnet
 * @date 2019-03-20
 */
public class WOrder extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 订单ID */
	private Long orderId;
	/**  */
	private String uuid;
	/**  */
	private Long creator;
	/**  */
	private Date createDate;
	/**  */
	private Long modifier;
	/**  */
	private Date modifyDate;
	/** 订单编号 */
	private String orderNo;
	/** 订单开始时间 */
	private Date startTime;
	/** 订单结束时间 */
	private Date endTime;
	/** 用户ID */
	private Long memberId;
	/** 设备ID */
	private Long machineId;
	/** 服务ID */
	private Long itemId;
	/** 服务价格 */
	private BigDecimal itemPrice;
	/**  */
	private String overTime;
	/** 费用 */
	private BigDecimal overFree;
	/** 总价格 */
	private BigDecimal totalPrice;
	/** 供应商所得 */
	private BigDecimal vendorEarn;
	/** 平台所得 */
	private BigDecimal platformEarn;
	/** 订单描述 */
	private String orderDesc;
	/** 订单状态 */
	private Integer state;
	/**订单类型*/
	private Integer orderType;
	/** 状态（0正常 1停用） */
	private String status;
	/** 备注 */
	private String remark;

	/**用户名称*/
	private String memberName;

	/**店铺名称*/
	private String shopName;

	/**机器名称*/
	private String machineName;

	/**服务名称*/
	private String itemName;

	public void setOrderId(Long orderId) 
	{
		this.orderId = orderId;
	}

	public Long getOrderId() 
	{
		return orderId;
	}
	public void setUuid(String uuid) 
	{
		this.uuid = uuid;
	}

	public String getUuid() 
	{
		return uuid;
	}
	public void setCreator(Long creator) 
	{
		this.creator = creator;
	}

	public Long getCreator() 
	{
		return creator;
	}
	public void setCreateDate(Date createDate) 
	{
		this.createDate = createDate;
	}

	public Date getCreateDate() 
	{
		return createDate;
	}
	public void setModifier(Long modifier) 
	{
		this.modifier = modifier;
	}

	public Long getModifier() 
	{
		return modifier;
	}
	public void setModifyDate(Date modifyDate) 
	{
		this.modifyDate = modifyDate;
	}

	public Date getModifyDate() 
	{
		return modifyDate;
	}
	public void setOrderNo(String orderNo) 
	{
		this.orderNo = orderNo;
	}

	public String getOrderNo() 
	{
		return orderNo;
	}
	public void setStartTime(Date startTime) 
	{
		this.startTime = startTime;
	}

	public Date getStartTime() 
	{
		return startTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}
	public void setMemberId(Long memberId) 
	{
		this.memberId = memberId;
	}

	public Long getMemberId() 
	{
		return memberId;
	}
	public void setMachineId(Long machineId) 
	{
		this.machineId = machineId;
	}

	public Long getMachineId() 
	{
		return machineId;
	}
	public void setItemId(Long itemId) 
	{
		this.itemId = itemId;
	}

	public Long getItemId() 
	{
		return itemId;
	}
	public void setItemPrice(BigDecimal itemPrice) 
	{
		this.itemPrice = itemPrice;
	}

	public BigDecimal getItemPrice() 
	{
		return itemPrice;
	}
	public void setOverTime(String overTime) 
	{
		this.overTime = overTime;
	}

	public String getOverTime() 
	{
		return overTime;
	}
	public void setOverFree(BigDecimal overFree) 
	{
		this.overFree = overFree;
	}

	public BigDecimal getOverFree() 
	{
		return overFree;
	}
	public void setTotalPrice(BigDecimal totalPrice) 
	{
		this.totalPrice = totalPrice;
	}

	public BigDecimal getTotalPrice() 
	{
		return totalPrice;
	}
	public void setVendorEarn(BigDecimal vendorEarn) 
	{
		this.vendorEarn = vendorEarn;
	}

	public BigDecimal getVendorEarn() 
	{
		return vendorEarn;
	}
	public void setPlatformEarn(BigDecimal platformEarn) 
	{
		this.platformEarn = platformEarn;
	}

	public BigDecimal getPlatformEarn() 
	{
		return platformEarn;
	}
	public void setOrderDesc(String orderDesc) 
	{
		this.orderDesc = orderDesc;
	}

	public String getOrderDesc() 
	{
		return orderDesc;
	}
	public void setState(Integer state) 
	{
		this.state = state;
	}

	public Integer getState() 
	{
		return state;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

	public Integer getOrderType() {
		return orderType;
	}

	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getMachineName() {
		return machineName;
	}

	public void setMachineName(String machineName) {
		this.machineName = machineName;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("uuid", getUuid())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .append("modifier", getModifier())
            .append("modifyDate", getModifyDate())
            .append("orderNo", getOrderNo())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("memberId", getMemberId())
            .append("machineId", getMachineId())
            .append("itemId", getItemId())
            .append("itemPrice", getItemPrice())
            .append("overTime", getOverTime())
            .append("overFree", getOverFree())
            .append("totalPrice", getTotalPrice())
            .append("vendorEarn", getVendorEarn())
            .append("platformEarn", getPlatformEarn())
            .append("orderDesc", getOrderDesc())
            .append("state", getState())
            .append("status", getStatus())
            .append("remark", getRemark())
			.append("orderType", getOrderType())
			.append("shopName", getShopName())
			.append("machineName", getMachineName())
			.append("itemName", getItemName())
			.append("memberName", getMemberName())
            .toString();
    }
}
